<?php /* Smarty version 2.6.22, created on 2009-04-14 16:48:26
         compiled from con_nextpage.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_image', 'con_nextpage.tpl', 69, false),)), $this); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<LINK href="frmm.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/bsn.AutoSuggest_2.1.3.js" charset="utf-8"></script>
<link rel="stylesheet" href="css/autosuggest_inquisitor.css" type="text/css" media="screen" charset="utf-8" />
<title>慕主先鋒教會特會報名</title>
<?php echo '

'; ?>


</head>

<body>

<div id="container"> 
  <h1><img src="frmmtitlePic.jpg" width="785" height="75"></h1>  
  <div id="thick-colnew"> 
 <center><h1>2009 夏令會註冊摘要 <br>Registration Summary</h1></center>

    <p><?php unset($this->_sections['customer']);
$this->_sections['customer']['name'] = 'customer';
$this->_sections['customer']['loop'] = is_array($_loop=$this->_tpl_vars['data']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['customer']['show'] = true;
$this->_sections['customer']['max'] = $this->_sections['customer']['loop'];
$this->_sections['customer']['step'] = 1;
$this->_sections['customer']['start'] = $this->_sections['customer']['step'] > 0 ? 0 : $this->_sections['customer']['loop']-1;
if ($this->_sections['customer']['show']) {
    $this->_sections['customer']['total'] = $this->_sections['customer']['loop'];
    if ($this->_sections['customer']['total'] == 0)
        $this->_sections['customer']['show'] = false;
} else
    $this->_sections['customer']['total'] = 0;
if ($this->_sections['customer']['show']):

            for ($this->_sections['customer']['index'] = $this->_sections['customer']['start'], $this->_sections['customer']['iteration'] = 1;
                 $this->_sections['customer']['iteration'] <= $this->_sections['customer']['total'];
                 $this->_sections['customer']['index'] += $this->_sections['customer']['step'], $this->_sections['customer']['iteration']++):
$this->_sections['customer']['rownum'] = $this->_sections['customer']['iteration'];
$this->_sections['customer']['index_prev'] = $this->_sections['customer']['index'] - $this->_sections['customer']['step'];
$this->_sections['customer']['index_next'] = $this->_sections['customer']['index'] + $this->_sections['customer']['step'];
$this->_sections['customer']['first']      = ($this->_sections['customer']['iteration'] == 1);
$this->_sections['customer']['last']       = ($this->_sections['customer']['iteration'] == $this->_sections['customer']['total']);
?> </p>
    <table class="frmm1">
<tr> 
      <th>&nbsp;</th>
          <th>中文姓名</th>
          
    <th>英文名First Name</th>    
          
    <th>英文姓 Last Name</th>
	  <th>性別 Gender</th>
      <th>關係 Relationship</th>
	  <th>組別 Group</th>
    </tr>
    <tr> 
      <td align="left" valign="top"><?php echo $this->_sections['customer']['index']+1; ?>
.</td>
          <td align="left" valign="top"><?php echo $this->_tpl_vars['data'][$this->_sections['customer']['index']]['cname']; ?>
</td>
      <td align="left" valign="top"><?php echo $this->_tpl_vars['data'][$this->_sections['customer']['index']]['first_name']; ?>
</td>
      <td valign="top"><?php echo $this->_tpl_vars['data'][$this->_sections['customer']['index']]['last_name']; ?>
</td>
          <td><?php if ($this->_tpl_vars['data'][$this->_sections['customer']['index']]['gender'] == 'M'): ?> 男 Male <?php else: ?> 女 Female<?php endif; ?></td>
	      <td><?php echo $this->_tpl_vars['data'][$this->_sections['customer']['index']]['relationship']; ?>
</td>
          <td><?php echo $this->_tpl_vars['data'][$this->_sections['customer']['index']]['groups']; ?>
</td>
    </tr>
</table>
<table class="frmm1">
<tr>
<th width="3%"></th>     
<th width="26%">餐數 Meal </th>
<th width="30%">參加堂數 Section to Attend</th>
<th width="38%">特別需要 Special Need</th> 
</tr>
<tr>
<td align="left" valign="top">   </td>
<td valign="TOP">
	  <table class="frmm2">

                <tr align="center" valign="top"> 
                  <td height="15"><font size="3">日期 Date</font></td>
                  <td><font size="3">7/2</font></td>
                  <td><font size="3">7/3</font></td>
                  <td><font size="3">7/4</font></td>
                  <td><font size="3">7/5</font></td>
                  <td><font size="3">7/6</font></td>
                </tr>
                <tr align="center" valign="top"> 
                  <td><font size="3">午餐 Lunch </font></td>
                  
                <td><font size="2">N/A</font></td>
                  <td><?php if ($this->_tpl_vars['data'][$this->_sections['customer']['index']]['meal2'] == 1): ?> <?php echo smarty_function_html_image(array('file' => 'check.gif'), $this);?>
 <?php else: ?>  <?php echo smarty_function_html_image(array('file' => 'uncheck.gif'), $this);?>
 <?php endif; ?> </td>
				  <td><?php if ($this->_tpl_vars['data'][$this->_sections['customer']['index']]['meal4'] == 1): ?> <?php echo smarty_function_html_image(array('file' => 'check.gif'), $this);?>
 <?php else: ?>  <?php echo smarty_function_html_image(array('file' => 'uncheck.gif'), $this);?>
 <?php endif; ?> </td>
				  <td><?php if ($this->_tpl_vars['data'][$this->_sections['customer']['index']]['meal6'] == 1): ?> <?php echo smarty_function_html_image(array('file' => 'check.gif'), $this);?>
 <?php else: ?>  <?php echo smarty_function_html_image(array('file' => 'uncheck.gif'), $this);?>
 <?php endif; ?> </td>
				  <td><?php if ($this->_tpl_vars['data'][$this->_sections['customer']['index']]['meal8'] == 1): ?> <?php echo smarty_function_html_image(array('file' => 'check.gif'), $this);?>
 <?php else: ?>  <?php echo smarty_function_html_image(array('file' => 'uncheck.gif'), $this);?>
 <?php endif; ?> </td>
                  
                </tr>
                <tr align="center" valign="top"> 
                  <td height="35"><font size="3">晚餐 Dinner </font></td>
                  <td><?php if ($this->_tpl_vars['data'][$this->_sections['customer']['index']]['meal1'] == 1): ?> <?php echo smarty_function_html_image(array('file' => 'check.gif'), $this);?>
 <?php else: ?>  <?php echo smarty_function_html_image(array('file' => 'uncheck.gif'), $this);?>
 <?php endif; ?> </td>
				  <td><?php if ($this->_tpl_vars['data'][$this->_sections['customer']['index']]['meal3'] == 1): ?> <?php echo smarty_function_html_image(array('file' => 'check.gif'), $this);?>
 <?php else: ?>  <?php echo smarty_function_html_image(array('file' => 'uncheck.gif'), $this);?>
 <?php endif; ?> </td>
				  <td><?php if ($this->_tpl_vars['data'][$this->_sections['customer']['index']]['meal5'] == 1): ?> <?php echo smarty_function_html_image(array('file' => 'check.gif'), $this);?>
 <?php else: ?>  <?php echo smarty_function_html_image(array('file' => 'uncheck.gif'), $this);?>
 <?php endif; ?> </td>
				  <td><?php if ($this->_tpl_vars['data'][$this->_sections['customer']['index']]['meal7'] == 1): ?> <?php echo smarty_function_html_image(array('file' => 'check.gif'), $this);?>
 <?php else: ?>  <?php echo smarty_function_html_image(array('file' => 'uncheck.gif'), $this);?>
 <?php endif; ?> </td>              
                  <td><font size="2">N/A</font></td>
                </tr>

            </table>
</td>
      <td valign="top">
	  	  <table class="frmm2">
              <tbody>
                <tr align="center" valign="top"> 
                  <td><font size="3">日期 Date</font></td>
                  <td><font size="3">7/2</font></td>
                  <td><font size="3">7/3</font></td>
                  <td><font size="3">7/4</font></td>
                  <td><font size="3">7/5</font></td>
                  <td><font size="3">7/6</font></td>
                </tr>
                <tr align="center" valign="top"> 
                  <td><font size="3">早上Morning</font></td>
                  <td><font size="2">N/A</font></td>
				  <td><?php if ($this->_tpl_vars['data'][$this->_sections['customer']['index']]['session2'] == 1): ?> <?php echo smarty_function_html_image(array('file' => 'check.gif'), $this);?>
 <?php else: ?>  <?php echo smarty_function_html_image(array('file' => 'uncheck.gif'), $this);?>
 <?php endif; ?> </td>
				  <td><?php if ($this->_tpl_vars['data'][$this->_sections['customer']['index']]['session5'] == 1): ?> <?php echo smarty_function_html_image(array('file' => 'check.gif'), $this);?>
 <?php else: ?>  <?php echo smarty_function_html_image(array('file' => 'uncheck.gif'), $this);?>
 <?php endif; ?> </td>
    			  
                <td><?php if ($this->_tpl_vars['data'][$this->_sections['customer']['index']]['session8'] == 1): ?> <?php echo smarty_function_html_image(array('file' => 'check.gif'), $this);?>
 
                  <?php else: ?> <?php echo smarty_function_html_image(array('file' => 'uncheck.gif'), $this);?>
 <?php endif; ?> </td>
				  <td><?php if ($this->_tpl_vars['data'][$this->_sections['customer']['index']]['session11'] == 1): ?> <?php echo smarty_function_html_image(array('file' => 'check.gif'), $this);?>
 <?php else: ?>  <?php echo smarty_function_html_image(array('file' => 'uncheck.gif'), $this);?>
 <?php endif; ?> </td>
                </tr>
                <tr align="center" valign="top"> 
                  <td><font size="3" >下午Afternoon</font></td>
                  
                <td><font size="3" > <font size="2">N/A</font></font></td>
				  <td><?php if ($this->_tpl_vars['data'][$this->_sections['customer']['index']]['session3'] == 1): ?> <?php echo smarty_function_html_image(array('file' => 'check.gif'), $this);?>
 <?php else: ?>  <?php echo smarty_function_html_image(array('file' => 'uncheck.gif'), $this);?>
 <?php endif; ?> </td>
    			  <td><?php if ($this->_tpl_vars['data'][$this->_sections['customer']['index']]['session6'] == 1): ?> <?php echo smarty_function_html_image(array('file' => 'check.gif'), $this);?>
 <?php else: ?>  <?php echo smarty_function_html_image(array('file' => 'uncheck.gif'), $this);?>
 <?php endif; ?> </td>
				  <td><?php if ($this->_tpl_vars['data'][$this->_sections['customer']['index']]['session9'] == 1): ?> <?php echo smarty_function_html_image(array('file' => 'check.gif'), $this);?>
 <?php else: ?>  <?php echo smarty_function_html_image(array('file' => 'uncheck.gif'), $this);?>
 <?php endif; ?> </td>
                  <td><font size="2">N/A</font></td>
                </tr>
                <tr align="center" valign="top"> 
                  <td><font size="3">晚上Evening</font></td>
				  <td><?php if ($this->_tpl_vars['data'][$this->_sections['customer']['index']]['session1'] == 1): ?> <?php echo smarty_function_html_image(array('file' => 'check.gif'), $this);?>
 <?php else: ?>  <?php echo smarty_function_html_image(array('file' => 'uncheck.gif'), $this);?>
 <?php endif; ?> </td>
    			  <td><?php if ($this->_tpl_vars['data'][$this->_sections['customer']['index']]['session4'] == 1): ?> <?php echo smarty_function_html_image(array('file' => 'check.gif'), $this);?>
 <?php else: ?>  <?php echo smarty_function_html_image(array('file' => 'uncheck.gif'), $this);?>
 <?php endif; ?> </td>
				  <td><?php if ($this->_tpl_vars['data'][$this->_sections['customer']['index']]['session7'] == 1): ?> <?php echo smarty_function_html_image(array('file' => 'check.gif'), $this);?>
 <?php else: ?>  <?php echo smarty_function_html_image(array('file' => 'uncheck.gif'), $this);?>
 <?php endif; ?> </td>
                  
                <td><?php if ($this->_tpl_vars['data'][$this->_sections['customer']['index']]['session10'] == 1): ?> <?php echo smarty_function_html_image(array('file' => 'check.gif'), $this);?>
 
                  <?php else: ?> <?php echo smarty_function_html_image(array('file' => 'uncheck.gif'), $this);?>
 <?php endif; ?> </td>
				  <td>&nbsp;</td>
                </tr>
              </tbody>
            </table>
	  </td>
          <td valign="TOP"> <?php echo $this->_tpl_vars['data'][$this->_sections['customer']['index']]['special_need']; ?>

		  <?php if ($this->_tpl_vars['foreign'] == 'Y'): ?>
		  <br>
          <form name="form<?php echo $this->_sections['customer']['index']+1; ?>
" method="post" action="con_genpdf.php">
		    <input type=submit name=action value="簽證信函 Visa" >
            <input type="hidden" name="first_name" value="<?php echo $this->_tpl_vars['data'][$this->_sections['customer']['index']]['first_name']; ?>
">
			<input type="hidden" name="last_name" value="<?php echo $this->_tpl_vars['data'][$this->_sections['customer']['index']]['last_name']; ?>
">
			<input type="hidden" name="cname" value="<?php echo $this->_tpl_vars['data'][$this->_sections['customer']['index']]['cname']; ?>
">
          </form>
		  <?php endif; ?>
		  </td>    
    </tr>
  
  </table>

<?php endfor; endif; ?> 

 <center>
    <form name="form1" method="post" action="con_redirect.php">
    <button type="submit" name="submit" value="modifyAddReg"> 
     <h3>修改/增加註冊</h3> 
      Modify/Add Registration
    </button> 

    <button type="submit" name="submit" value="confirmReg"> 
     <h3>請確認註冊</h3> 
Confirm Registration
    </button>
    </form>
	</center>
  </div>

</div>

</body>
</html>